var express = require('express');
var router = express.Router();

const {
    index,
    login,
    verify,
    reg,
    check
} = require("../controller/index");

class IndexRouter {
    static initRouter() {
        router.get('/', index);
        router.post('/login', login);
        router.get('/verify', verify);
        router.post('/reg', reg);
        router.get('/check', check);
        return router;
    }
}
module.exports = IndexRouter.initRouter();